FROM alpine:3.10
RUN apk --no-cache add gcc g++ make autoconf curl unzip && mkdir /zz && cd /zz
RUN apk add lz4-dev snappy-dev cmake

ADD ssdb.tar /zz
RUN cd /zz/ssdb && make && make install
#RUN cd /zz && curl --output ssdb.zip  https://gitee.com/jiangluu/ssdb/repository/archive/master.zip  && unzip ssdb.zip && ls -al && cd ssdb && make && make install
RUN apk del cmake && rm -Rf /zz/ssdb && mkdir /data

VOLUME /data

EXPOSE 33

CMD ["/usr/ssdb/ssdb-server", "/usr/ssdb/aaaa.conf" ]